/*
 *NOTE:Auto generated dao
*/
package com.surfilter.modules.com.dao;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.surfilter.modules.com.model.HtPropModel;
import com.surfilter.platform.base.dao.DaoBase;
import com.surfilter.platform.base.model.PageInfo;

@Repository(value="Service_comHtPropDao")
public class HtPropDao extends DaoBase<HtPropModel>{

	@Resource(name = "surfilterSqlMapClient")
	private SqlMapClient sqlMapClient;

	public void initSqlMapClient() {
		this.setSqlMapClient(sqlMapClient);
	}
	
		public java.lang.Integer addHtProp(HtPropModel htPropModel) {
		java.lang.Integer key = (java.lang.Integer) this.addObject("addHtProp", htPropModel);
		return key;
	}
	
	public void chgHtProp(HtPropModel htPropModel) {
		this.updateObject("chgHtProp", htPropModel);
	}
	
	public void delHtProp(HtPropModel htPropModel) {
		this.updateObject("delHtProp", htPropModel);
	}

	public List<HtPropModel> getHtProps(HtPropModel htPropModel, PageInfo pageInfo) {
		return this.getListByObjectForPage("getHtProps", htPropModel, pageInfo);
	}
	
	public void delHtProps(List<java.lang.Integer> ids){
		this.deleteObject("delHtProps", ids);
	}
	
	public int getHtPropsCount(HtPropModel htPropModel) {
		return (Integer) this.getObjectByObject("getHtPropsCount", htPropModel);
	}
}
